<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::rule('/','index/index/index','get');//H5页面（推广页面，官网首页等，备用）

Route::rule('/api/index/getIndexData','api/index/getIndexData','get');//首页数据接口
Route::rule('/api/index/getConfig','api/index/getConfig','get');//获取系统配置接口
Route::rule('/api/index/getCategory','api/index/getCategory','get');//获取系统分类接口
Route::rule('/api/index/getBanner','api/index/getBanner','get');//获取首页轮播图接口
Route::rule('/api/index/getCourse','api/index/getCourse','get');//获取上架课程接口
Route::rule('/api/index/getAbout','api/index/getAbout','get');//获取公司介绍接口
Route::rule('/api/index/getHotWord','api/index/getHotWord','get');//获取热门关键词接口

Route::rule('/api/user/login','api/user/login','get');//微信用户登录接口
Route::rule('/api/user/saveUserInfo','api/user/saveUserInfo','post');//保存用户头像接口
Route::rule('/api/user/getUserInfo','api/user/getUserInfo','get');//获取用户基本信息接口
Route::rule('/api/user/medal','api/user/medal','get');//我的勋章列表接口
Route::rule('/api/user/myShare','api/user/myShare','get');//我的邀请函接口
Route::rule('/api/user/guestBook','api/user/guestBook','post');//意见反馈接口
Route::rule('/api/user/upload','api/user/upload','post');//图片上传接口
Route::rule('/api/user/getCourseOrderList','api/user/getCourseOrderList','get');//课程订单列表接口
Route::rule('/api/user/getCourseOrderInfo','api/user/getCourseOrderInfo','get');//课程订单详情接口
Route::rule('/api/user/courseOrderPay','api/user/courseOrderPay','get');//课程订单支付接口
Route::rule('/api/user/courseNotify','api/user/courseNotify','get|post');//课程订单支付回调接口
Route::rule('/api/user/getProductOrderList','api/user/getProductOrderList','get');//产品订单列表接口
Route::rule('/api/user/getProductOrderInfo','api/user/getProductOrderInfo','get');//产品订单详情接口
Route::rule('/api/user/productOrderPay','api/user/productOrderPay','get');//产品订单支付接口
Route::rule('/api/user/productNotify','api/user/productNotify','get|post');//产品订单支付回调接口

Route::rule('/api/course/getCourseList','api/course/getCourseList','get');//获取课程列表接口
Route::rule('/api/course/getCourseInfo','api/course/getCourseInfo','get');//获取课程详情接口
Route::rule('/api/course/buy','api/course/buy','post');//购买课程接口

Route::rule('/api/product/getProductList','api/product/getProductList','get');//获取产品列表接口
Route::rule('/api/product/getProductInfo','api/product/getProductInfo','get');//获取产品详情接口
Route::rule('/api/product/buy','api/product/buy','post');//购买产品接口

Route::rule('/api/article/getArticleList','api/article/getArticleList','get');//获取往期精彩列表接口
Route::rule('/api/article/getArticleInfo','api/article/getArticleInfo','get');//获取往期精彩详情接口

Route::rule('/api/student/getStudentList','api/student/getStudentList','get');//获取大咖学员列表接口
Route::rule('/api/student/getStudentInfo','api/student/getStudentInfo','get');//获取大咖学员详情接口

Route::rule('/api/teacher/getTeacherList','api/teacher/getTeacherList','get');//获取专家团队列表接口
Route::rule('/api/teacher/getTeacherInfo','api/teacher/getTeacherInfo','get');//获取专家团队详情接口

Route::rule('/api/cases/getCasesList','api/cases/getCasesList','get');//获取案例列表接口
Route::rule('/api/cases/getCasesInfo','api/cases/getCasesInfo','get');//获取案例详情接口